package com.zzedu.dto;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 大屏管理对象 zz_app_device
 * 
 * @author Mr.Wang
 * @date 2025-06-02
 */
public class ZzAppDeviceDTO implements Serializable
{
    private static final long serialVersionUID = 1L;
    /** id */

    private Long id;
    /** 设备序列号 */
    private String deviceSn;
    /** 设备mac */
    private String deviceMac;
    /** 对应学校 */
    private Long schoolId;
    /** 绑定时间 */

    private LocalDateTime bindDate;
    /** 绑定IP */
    private String bindIp;
    /** 绑定code */
    private Long bindId;
    /** 最后登录ip */
    private String lastLoginIp;
    /** 最后登录时间 */

    private LocalDateTime lastLoginDate;
    /** 最后登录人 */
    private Long lastLoginUserId;
    /** 状态 0-正常 1暂停 */
    private Integer state;
    /** 添加时间 */
    private LocalDateTime gmtCreate;
    /** 更新时间 */
    private LocalDateTime gmtModify;
    /** 逻辑删除(0：未删除 1：id) */
    private Integer deleted;
    /** 创建人 */
    private Long createBy;
    /** 修改人 */
    private Long updateBy;
    private Map<String, Object> params;
    /**
     * 当前记录起始索引
     */
    private Long pageNum = 1l;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 20l;

    /**
     * 排序列
     */
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    private String isAsc = "asc";

    /**
     * 是否在线 0-是
     */
    private Integer onLine;
    /**
     * 学校
     */
    private List<Long> schoolIdArray;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }
    public void setDeviceMac(String deviceMac) 
    {
        this.deviceMac = deviceMac;
    }

    public String getDeviceMac() 
    {
        return deviceMac;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }
    public void setBindDate(LocalDateTime bindDate) 
    {
        this.bindDate = bindDate;
    }

    public LocalDateTime getBindDate() 
    {
        return bindDate;
    }
    public void setBindIp(String bindIp) 
    {
        this.bindIp = bindIp;
    }

    public String getBindIp() 
    {
        return bindIp;
    }
    public void setBindId(Long bindId) 
    {
        this.bindId = bindId;
    }

    public Long getBindId() 
    {
        return bindId;
    }
    public void setLastLoginIp(String lastLoginIp) 
    {
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginIp() 
    {
        return lastLoginIp;
    }
    public void setLastLoginDate(LocalDateTime lastLoginDate) 
    {
        this.lastLoginDate = lastLoginDate;
    }

    public LocalDateTime getLastLoginDate() 
    {
        return lastLoginDate;
    }
    public void setLastLoginUserId(Long lastLoginUserId) 
    {
        this.lastLoginUserId = lastLoginUserId;
    }

    public Long getLastLoginUserId() 
    {
        return lastLoginUserId;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setGmtCreate(LocalDateTime gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(LocalDateTime gmtModify) 
    {
        this.gmtModify = gmtModify;
    }

    public LocalDateTime getGmtModify() 
    {
        return gmtModify;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setCreateBy(Long createBy) 
    {
        this.createBy = createBy;
    }

    public Long getCreateBy() 
    {
        return createBy;
    }
    public void setUpdateBy(Long updateBy) 
    {
        this.updateBy = updateBy;
    }

    public Long getUpdateBy() 
    {
        return updateBy;
    }


    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public IPage getPageDTO() {
        return PageDTO.of(getPageNum(), getPageSize());
    }

    public Integer getOnLine() {
        return onLine;
    }

    public void setOnLine(Integer onLine) {
        this.onLine = onLine;
    }

    public List<Long> getSchoolIdArray() {
        return schoolIdArray;
    }

    public void setSchoolIdArray(List<Long> schoolIdArray) {
        this.schoolIdArray = schoolIdArray;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
